//---------------------------------------------------------------------------

#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include "UserBridge.h"
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include <Db.hpp>
#include <DBTables.hpp>
#include <ImgList.hpp>
#include <DB.hpp>
#include <ExtCtrls.hpp>
#include <jpeg.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published:	// IDE-managed Components
        TMainMenu *mnuMain;
        TMenuItem *mnuTables;
        TMenuItem *mnuCustomers;
        TDatabase *dbsMain;
        TMenuItem *mnuGlassesFirms;
        TMenuItem *mnuReports;
        TMenuItem *mnuStock;
        TImageList *hotImageList;
        TImageList *disableImageList;
        TMenuItem *mnuInvoices;
        TMenuItem *mnuInvoiceReport;
        TMenuItem *mnuShipments;
        TMenuItem *mnuShipmentsReport;
        TMenuItem *mnuProviders;
        TMenuItem *mnuFrameProviders;
        TMenuItem *mnuPaymentTypes;
        TImage *Image1;
        void __fastcall mnuCustomersClick(TObject *Sender);
        void __fastcall mnuGlassesFirmsClick(TObject *Sender);
        void __fastcall mnuStockClick(TObject *Sender);
        void __fastcall mnuInvoicesClick(TObject *Sender);
        void __fastcall mnuInvoiceReportClick(TObject *Sender);
        void __fastcall mnuShipmentsClick(TObject *Sender);
        void __fastcall mnuShipmentsReportClick(TObject *Sender);
        void __fastcall mnuProvidersClick(TObject *Sender);
        void __fastcall mnuFrameProvidersClick(TObject *Sender);
        void __fastcall mnuPaymentTypesClick(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
private:	// User declarations
        TUser* user;

        void showMenus();        

public:		// User declarations
        __fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
